package com.thresh.bean;

import com.thresh.service.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @Author YWB
 * @Date 2021/4/22
 * desc
 **/
@Component
public class ConsumerComponent {
    @Reference
    private DemoService helloService;
    public String  sayHello(String name){
        return  helloService.sayHello(name);
    }

}
